package com.tensquare.spit.dao;

import com.tensquare.spit.pojo.Spit;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * Spit MongoData.
 *
 * @author 宫新程
 * @since 2019/3/4 0:14
 */
public interface SpitDao extends MongoRepository<Spit, String> {

  /** 根据上级ID查询吐槽数据. */
  Page<Spit> findByParentid(String parentId, Pageable pageable);
}
